package com.laowang.blog.mapper;

import com.laowang.blog.dto.QuestionQueryDTO;
import com.laowang.blog.model.Question;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface QuestionExtMapper {
    int incView(Question record);

    void incCommentCount(Question question);

    List<Question> selectRelated(Question question);

    long countBySearch(QuestionQueryDTO questionQueryDTO);

    List<Question> selectBySearch(QuestionQueryDTO questionQueryDTO);
}